package com.cpi.cornpp.purchase.program.generator.form;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.struts.action.ActionForm;

import com.cpi.cornpp.purchase.program.view.PurchaseOrderView;



public class PurchaseProgramGeneratorForm extends ActionForm{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5875772003634621599L;

	/**
	 * Lista de biweeks 
	 */
	private List biweeks;
	
	/**
	 * SubLista de biweeks del rango elegido.
	 * Esta lista es utilizada en la pregeneracion
	 */
	private List biweeksRange;
	
	/**
	 * Lista de transports
	 */
	private List transports;
	
	/**
	 * Lista de tipos de maiz
	 */
	private List cornTypes;
	
	/**
	 * 
	 */
	private Collection transportCharges;
	
	/**
	 * Lista de destinos
	 */
	private List plants;
	
	private List purchaseOrderViews;
	
	/**
	 * 
	 */
	private PurchaseOrderView view;
	
	public PurchaseProgramGeneratorForm() {
		transportCharges = new ArrayList();
		purchaseOrderViews = new ArrayList();
		view = new PurchaseOrderView();
	}
	/**
	 * Obtiene la Lista de biweeks
	 * @return
	 */
	public List getBiweeks() {
		return biweeks;
	}

	/**
	 * Asigna la lista de biweeks
	 * @param biweeks
	 */
	public void setBiweeks(List biweeks) {
		this.biweeks = biweeks;
	}

	/**
	 * 
	 * @return
	 */
	public PurchaseOrderView getView() {
		return view;
	}

	/**
	 * 
	 * @param view
	 */
	public void setView(PurchaseOrderView view) {
		this.view = view;
	}
	
	/**
	 * 
	 * @return
	 */
	public List getTransports() {
		return transports;
	}

	/**
	 * 
	 * @param transports
	 */
	public void setTransports(List transports) {
		this.transports = transports;
	}

	/**
	 * 
	 * @return
	 */
	public List getPlants() {
		return plants;
	}

	/**
	 * 
	 * @param plants
	 */
	public void setPlants(List plants) {
		this.plants = plants;
	}

	/**
	 * 
	 * @return
	 */
	public Collection getTransportCharges() {
		return transportCharges;
	}

	/**
	 * 
	 * @param transportCharges
	 */
	public void setTransportCharges(Collection transportCharges) {
		this.transportCharges = transportCharges;
	}
	/**
	 * 
	 * @return
	 */
	public List getPurchaseOrderViews() {
		return purchaseOrderViews;
	}
	/**
	 * 
	 * @param purchaseOrderViews
	 */
	public void setPurchaseOrderViews(List purchaseOrders) {
		this.purchaseOrderViews = purchaseOrders;
	}
	/**
	 * 
	 * @return
	 */
	public List getBiweeksRange() {
		return biweeksRange;
	}
	/**
	 * 
	 * @param biweeksRange
	 */
	public void setBiweeksRange(List biweeksRange) {
		this.biweeksRange = biweeksRange;
	}

	public int getTransportChargesSize(){
		return transportCharges.size();
	}
	public List getCornTypes() {
		return cornTypes;
	}
	public void setCornTypes(List cornTypes) {
		this.cornTypes = cornTypes;
	}
	
	
}

